hdc shell setenforce 0
set ymd=%date:~0,4%%date:~5,2%%date:~8,2%
for /f "tokens=* delims= " %%a in ("%ymd%") do set ymd=%%a
set hms=%time:~0,2%%time:~3,2%%time:~6,2%
for /f "tokens=* delims= " %%a in ("%hms%") do set hms=%%a
set filename=systrace_%ymd%_%hms%.trace
hdc shell "bytrace -b 204800 -t 20 ability ace app ark binder disk distributeddatamgr freq graphic idle irq load mdfs misc mmc msdp notification ohos pagecache regulators rpc sched sensors sync ufs window workq zaudio zcamera zimage zmedia > /data/%filename%"
hdc shell "sed -i '1,2d' /data/%filename%"
hdc file recv /data/%filename% ./
pause